package com.java.service;

import com.java.bean.Admin;
import com.java.bean.Customs;
import com.java.dao.AdminMapper;
import com.java.dao.CustomsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class AdminService {

    @Autowired
    CustomsMapper customsMapper;

    @Autowired
    AdminMapper adminMapper;

    public List<Customs> selectName(String name) {
        Customs admin=customsMapper.selectByTel(name);
        System.out.println(admin.getcTel()+" "+admin.getcPw());
        List<Customs> list= new ArrayList<Customs>();
        list.add(admin);
        return list;

    }
}
